import Mock from 'mockjs'
import homeApi from './mockServeData/home'
import user from './mockServeData/user'
import permission from './mockServeData/permission'
// 引入后台数据


// 定义mock请求拦截
Mock.mock('/api/home/getData', homeApi.getStatisticalData)

// 用户列表的数据
Mock.mock('/api/user/add', 'post', user.createUser)  //新增用户
Mock.mock('/api/user/edit', 'post', user.updateUser)  //编辑用户
Mock.mock('/api/user/del', 'post', user.deleteUser)  //删除用户
Mock.mock(/api\/user\/getUser/, user.getUserList)  //获取数据

// 定义mock 调用方法 
Mock.mock(/api\/permission\/getMenu/, 'post', permission.getMenu)